package org.seckill.service;

import org.seckill.pojo.Seckill;
import org.seckill.vo.Exporter;
import org.seckill.vo.SeckillExecution;

import java.util.List;

/**
 * Created by ASUS on 2017/7/31.
 */
public interface SeckillService {

    List<Seckill> getSeckillAll();

    Seckill getSeckill(Long seckillId);

    //输出秒杀接口url   未开启时返回秒杀时间和系统时间

    Exporter exportSeckillUrl(Long seckillId);

    //执行秒杀操作
    //SeckillExecution executeSeckill(Long seckillId,long userPhone,String md5) throws Exception;



    //执行秒杀操作   存储过程

    SeckillExecution executeSeckillByProcedure(Long seckillId,long userPhone,String md5) ;


}